﻿//
// Created: 2018/9/27
// Author: chenqiang
//
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xproject.Framework.Core;
using System.ComponentModel.DataAnnotations.Schema;

namespace Model.WXshopBuiness
{
    /// <summary>
    /// 活动配置表
    /// </summary>
    public class  Promotions:IEntity
    {
    
       ///<summary>
       ///活动ID
       ///<summary>
       public string PromotionID  { get; set; } 
       ///<summary>
       ///活动名
       ///<summary>
       public string PromotionName  { get; set; } 
       ///<summary>
       ///开始时间
       ///<summary>
       public DateTime StartTime  { get; set; } 
       ///<summary>
       ///结束时间
       ///<summary>
       public DateTime EndTime  { get; set; } 
       ///<summary>
       ///参数1
       ///<summary>
       public string Param1  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public string Param2  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public string Param3  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public string Param4  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public string Param5  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public string Param1Name  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public string Param2Name  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public string Param3Name  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public string Param4Name  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public string Param5Name  { get; set; } 
         
       public string PromotionUnidName { get; set; }
        [NotMapped]
        public string StrStartTime { get {
                return StartTime.ToString("yyyy-MM-dd HH:mm:ss");
            }
        }
        [NotMapped]
        public string StrEndTime { get {
                return EndTime.ToString("yyyy-MM-dd HH:mm:ss");
            } }

        public int Disable { get; set; }
        public DateTime CreateTime { get; set; }

        public string Remarks { get; set; }

        [NotMapped]
        public long Id { get; set; }

        [NotMapped]
        public EntityState EntityState { get; set; }

        public int CompareTo(object obj)
        {
            throw new NotImplementedException();
        }
    }
}